<template>

<table   class="table table-bordered">

    <tr>
        <th>
            账号
        </th>
        <th>
            <input type="text" v-model="aa.Phone">
        </th>
    </tr>

    <tr>
        <th>
            密码
        </th>
        <th>
            <input type="password" v-model="aa.Pwd">
        </th>
    </tr>


   <tr>
        <th>
            
        </th>
        <th>
            <button @click="Login">登陆</button>
        </th>
    </tr>

</table>





</template>


<script setup lang="ts">


import axios from 'axios';
import {ref} from 'vue'

const  aa=ref({

    Phone:"",
    Pwd:"",


})


const Login=()=>{

    axios.get('https://localhost:7099/api/Member/Login',{params:{


        Phone:aa.value.Phone,
        Pwd:aa.value.Pwd,


    }}).then (res=>{

            if(res.data.id==-1)
            {
                alert(res.data.tiSHi)
            }
            else if(res.data.id==-1)
            {
                alert(res.data.tiSHi)
            }
            else if(res.data.id==1)
            {
                alert(res.data.tiSHi)
            }

    })

}




</script>